package com.seocoo.worker.order;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.seocoo.worker.R;

/**
 * author : Ssp
 * date   : 2020/2/22 23:54
 * desc   : 取消安装
 */
public class OrderCancelInstallSuccessActivity extends FragmentActivity implements View.OnClickListener {

    private TextView tv_know;
    private ImageView iv_close;

    public static void start(Context context) {
        Intent intent = new Intent(context, OrderCancelInstallSuccessActivity.class);
        context.startActivity(intent);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.order_cancle_install_success_activity);
        initView();
        initListener();
    }

    private void initView() {

        tv_know = findViewById(R.id.tv_know);
        iv_close = findViewById(R.id.iv_close);
    }

    private void initListener() {
        iv_close.setOnClickListener(this);
        tv_know.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.tv_know) {
            //关闭
            finish();
        }
        if (view.getId() == R.id.iv_close) {
            //关闭
            finish();
        }
    }
}
